package com.example.myhelloworld.client;

import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

/**
 * The client side stub for the RPC service.
 */
@RemoteServiceRelativePath("greet")
public interface GreetingService extends RemoteService {
  String greetServer(String name);
  Boolean isUserLoggedIn(String service);
  String getLoginURL(String service, String dest);
  String getLogoutURL(String service,  String dest);
  String getUser(String service);
  String sendResult(String service);
  String getSidebarList(String username);
  String getAllUsers();
  String changeUser(String userparameter);
  String addExercise(String exerciseDescriptor);
  String submitResult(String result);
  String getExerciseNames();
  String getExerciseResults(String results);
  String dropDataBaseExercises();
  String fillDataBaseExercises();
  String checkValidLogin(String usernameAndPassword);
  Boolean userNotInDatabase(String userName);
  String adduser(String userName, String passwordHash, String question, String answerHash);
  String getUserQuestion(String userName);
  String checkValidAnswer(String userName, String questionHash);
}
